exports.install = function(Vue, options) {
  Vue.prototype.isEmpty = function(object) { //全局函数1
    if (object === undefined || object == null || object === '') {
      return true
    }
    return false
  }
  Vue.prototype.getYMDByDate = function(date) { //得到年月日返回值，传入date对象
    const seperator1 = '-'
    const year = date.getFullYear()
    let month = date.getMonth() + 1
    let strDate = date.getDate()
    if (month >= 1 && month <= 9) {
      month = '0' + month
    }
    if (strDate >= 0 && strDate <= 9) {
      strDate = '0' + strDate
    }
    const currentdate = year + seperator1 + month + seperator1 + strDate
    return currentdate
  }
}
